package com.esun.util.webviewchromeclient;

import com.esun.ui.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/** 
* @ClassName: CustomProgressDialog 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author: Kael gaojian@500wan.com
* @date: 2012-7-24 上午11:11:11 
*  
*/
public class CustomProgressDialog extends Dialog {

	private TextView mTextView;
	private CharSequence mMessage;

	/**
	 * @param context
	 * @param theme
	 */
	public CustomProgressDialog(Context context) {
		super(context, R.style.dialog);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_progress_view);
		mTextView = (TextView) findViewById(R.id.tv_progress_dialog_message);
	}

	@Override
	protected void onStart() {
		mTextView.setText(mMessage);
		super.onStart();
	}

	public void setMessage(CharSequence message) {
		this.mMessage = message;
	}

}
